package com.cos.shop.common;

/**
 * @author: COS
 * @time: 2023/5/10 9:11
 * @description:
 * 响应代码设置
 */
public enum ResponseCode {
    FAIL(0,"失败"),
    SUCCESS(1,"成功"),
    IS_LOGIN(2,"一登录"),
    NOT_LOGIN(3,"未登录"),
    NOT_FOND(404,"没有找到页面啦~ O(∩_∩)O哈哈~");

    private int code;
    private String msg;

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
